<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_no" class="form-control" readonly name="row[order_no]" type="text"
                   value="{$row.order_no|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input id="c-order_type" class="form-control" readonly name="row[order_type]" type="text"
                   value="{$row.order_type|htmlentities}">

        </div>
    </div>

    {if condition="$row['order_type'] eq '外卖'"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('收件人')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input class="form-control" readonly type="text"
                   value="{$row.addressInfo.title|htmlentities}{$row.addressInfo.suffix|htmlentities}">

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('电话')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input class="form-control" readonly name="row[order_type]" type="text"
                   value="{$row.addressInfo.mobile|htmlentities}">

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('地址')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input class="form-control" readonly name="row[order_type]" type="text"
                   value="{$row.addressInfo.address|htmlentities}-{$row.addressInfo.remark|htmlentities}">

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('期望送达时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_time" class="form-control" readonly name="row[service_time]" type="text"
                   value="{$row.service_time|datetime|htmlentities}">
        </div>
    </div>

    {/if}
    {if condition="$row['order_type'] eq '堂食'"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('餐位费')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input class="form-control" readonly name="row[cwf_fee]" type="text" value="{$row.cwf_fee|htmlentities}">

        </div>
    </div>
    {/if}


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key|htmlentities}"><input id="row[status]-{$key|htmlentities}" name="row[status]" readonly type="radio"
                                                       value="{$key|htmlentities}" {in name="key" value="$row.status" }checked{/in}
                    /> {$vo|htmlentities}</label>
                {/foreach}
            </div>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Out_trade_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-out_trade_no" class="form-control" readonly name="row[out_trade_no]" type="text"
                   value="{$row.out_trade_no|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" class="form-control" readonly name="row[remark]" type="text"
                   value="{$row.remark|htmlentities}">
        </div>
    </div>
    {if condition="$row['order_type'] eq '自取'"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('预留电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subscribe_tel" class="form-control" readonly name="row[subscribe_tel]" type="text"
                   value="{$row.subscribe_tel|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('预约时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subscribe_times" class="form-control" readonly name="row[subscribe_time]" type="text"
                   value="{$row.subscribe_time|datetime|htmlentities}">
        </div>
    </div>
    {/if}
    {if condition="$row['order_type'] eq '预约'"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('预约时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subscribe_time" class="form-control" readonly name="row[subscribe_time]" type="text"
                   value="{$row.subscribe_time|datetime|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('订座人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subscribe_name" class="form-control" readonly name="row[subscribe_name]" type="text"
                   value="{$row.subscribe_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('到店时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dd_time" class="form-control" readonly name="row[dd_time]" type="text"
                   value="{$row.dd_time|htmlentities}">
        </div>
    </div>
    {/if}

    {if condition="($row['order_type'] eq '自取') OR ($row['order_type'] eq '外卖') || ($row['order_type'] eq '堂食')"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" class="form-control" readonly name="row[code]" type="text"
                   value="{$row.code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('商品详情')}:</label>
        <div class="col-xs-12 col-sm-8">
            <table class="table table-striped">

                <tbody>
                <tr>
                    <td>{:__('门店名称')}</td>
                    <td>{:__('商品图片')}</td>
                    <td>{:__('商品名称')}</td>
                    <td>{:__('商品规格')}</td>
                    <td>{:__('购买数量')}</td>
                </tr>
                {foreach name="data" id="rows"}
                <tr>
                    <td style="word-break: break-all;">{$rows['store']['title']}</td>
                    <td style="word-break: break-all;"><img src="{$rows.goods.image|htmlentities|cdnurl}" width="50px"
                                                            alt=""></td>
                    <td style="word-break: break-all;">{$rows['goods']['title']}</td>
                    <td style="word-break: break-all;">{$rows['item_name']}</td>
                    <td style="word-break: break-all;">{$rows['goods_count']}</td>
                </tr>
                {/foreach}

                </tbody>
            </table>
        </div>
    </div>
    {/if}




    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed ">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>




